import  request from '@/utils/request.js'
// /surfacewater/reportData/getReportRelease

// 报表发布
export function getReportRelease(query = {}) {
  return request({
    url: '/surfacewater/reportData/getReportRelease',
    method: 'get',
    params: query
  })
}

// 获取数据源列表 /surfacewater/reportData/getReportData
export function getReportData(query = {}) {
  return request({
    url: '/surfacewater/reportData/getReportData',
    method: 'get',
    params: query
  })
}

// 报表详情 /surfacewater/reportData/getInfo/{id}
export function getReportInfo(id) {
  return request({
    url: `/surfacewater/reportData/getInfo/${id}`,
    method: 'get',
  })
}

// 添加报表 /surfacewater/reportData/add
export function addReport(data) {
  return request({
    url: '/surfacewater/reportData/add',
    method: 'post',
    data
  })
}

// 修改报表 /surfacewater/reportData/edit
export function editReport(data) {
  return request({
    url: '/surfacewater/reportData/edit',
    method: 'post',
    data
  })
}

// 删除报表 /surfacewater/reportData/remove/{ids}
export function removeReport(ids) {
  return request({
    url: `/surfacewater/reportData/remove/${ids}`,
    method: 'get',
  })
}

// 审核报表 /surfacewater/reportData/audit
export function auditReport(data) {
  return request({
    url: '/surfacewater/reportData/audit',
    method: 'post',
    data
  })
}
